<?php

class template {

    protected $_ci;

    function __construct(){
        $this->_ci = &get_instance();
    }

    function tampilan($template, $data = NULL){

        $data['_header'] = $this->_ci->load->view('template/header', $data, TRUE);
        $data['_menuatas'] = $this->_ci->load->view('template/menuatas', $data, TRUE);
        $data['_menukiri'] = $this->_ci->load->view('template/menukiri', $data, TRUE);
        $data['_isi'] = $this->_ci->load->view('template/isi', $data, TRUE);
        $data['_footer'] = $this->_ci->load->view('template/footer', $data, TRUE);

        $this->_ci->load->view('template/index', $data);
    }
}
